package uy.com.csi.gestpro.model.proyecto;

import java.io.Serializable;

import javax.persistence.*;


/**
 * The persistent class for the gp_actvdad_ftra database table.
 * 
 */
@Entity
@Table(name="gp_actvdad_ftra", schema="proyecto")
@NamedQuery(name="GpActvdadFtra.findAll", query="SELECT g FROM GpActvdadFtra g")
public class GpActvdadFtra implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
    @Basic(optional = false)
	@SequenceGenerator(name = "sq_id_actvdad_ftra", sequenceName = "proyecto.sq_id_actvdad_ftra", allocationSize = 1)
    @GeneratedValue(generator = "sq_id_actvdad_ftra")
	private Integer id;

	@ManyToOne(fetch=FetchType.LAZY)
	@JoinColumn(name="id_infrme")
	private GpInfrmeDrio gpInfrmeDrio;

	@ManyToOne(fetch=FetchType.EAGER)
	@JoinColumn(name="id_tra_ftra")
	private GpTraFtra gpTraFtra;
	
	public GpActvdadFtra() {
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public GpInfrmeDrio getGpInfrmeDrio() {
		return gpInfrmeDrio;
	}

	public void setGpInfrmeDrio(GpInfrmeDrio gpInfrmeDrio) {
		this.gpInfrmeDrio = gpInfrmeDrio;
	}

	public GpTraFtra getGpTraFtra() {
		return gpTraFtra;
	}

	public void setGpTraFtra(GpTraFtra gpTraFtra) {
		this.gpTraFtra = gpTraFtra;
	}

}